import java.util.Scanner;
public class Lab06_Task02 {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
boolean w = false;
boolean q = false;
int t = s.nextInt();
if (t<0) {
System.out.println("Negative number of students not allowed!!");
} else {
int i = 0;
int c = 0;
int mark[] = new int[99999];
while(i<t) {
mark[c] = s.nextInt();
if(mark[c]<0) {
w = true;
}
if(mark[c]>100) {
q = true;
}
c++;
i++;
}
int sum = 0;
i = 0;
while(i<c) {
sum = sum+mark[i];
i++;
}
double avg =(double) sum/c;
if (w){
System.out.println("Negative marks not allowed!!");
} else if(q) {
System.out.println("Marks above 100 not allowed!!");
} else {
System.out.println("Sum = "+sum+" and Average = "+String.format("%.2f",avg));
}
}
}
}